<div id="body" style='clear: none; overflow: auto;'>
	<?
		$bAdmin = getParam('bAdmin');
		$ncMenuPadre = getParam('ncMenuPadre', 3);
		$ncMenu = getParam('ncMenu');
		echo "<div id=\"body_left\" >";
		$oMenu = new Menu('body_main', 'menuitem', 'menu', false);
		if ( $bAdmin )
		{
			$oMenu->setMatrix( $this->getMenuMatrix() );
		} else
		{
			$cSql = "SELECT ncMenu, cdMenu, cAccion, cParametros, bExpandido, cDescripcion FROM gtMenu WHERE bActivo = 1 AND ncMenuPadre = 1 ORDER BY nOrden";
			$nqItems = $this->oDatabase->total($cSql);
			if ( $nqItems > 0 )
			{
				$oRs = $this->oDatabase->recordset($cSql);
				while ( $oRs->moveNext() )
				{
					$oMenu->addItem( extractLanguage( $oRs->aFields['cdMenu'], $this->getLanguage()) , '?ncMenuPadre=' . $ncMenuPadre . '&amp;ncMenu=' . $oRs->aFields['ncMenu'] . '&amp;ac=' . $oRs->aFields['cAccion'] . '&amp;' . $oRs->aFields['cParametros'], 'body', $oRs->aFields['cDescripcion'], $oRs->aFields['bExpandido'] );
				}
			}
		}
	?>
		<div id="menu" >
			<?	$oMenu->make() ?>
		</div>
	</div>
	<div id="body_main" >
		<?	$this->show(); ?>
	</div>
</div>